# Replication Data for: Levels of Office and Voter Accountability for Democratic Norm Violations

**The `data` folder contains all datasets:**

- `results_unlabelled`: Dataset used for analysis in Study 1.
- `results_labelled`: Same dataset, but with character labels instead of numeric values.
- `study2data_unlabelled`: Dataset used for analysis in Study 2.
- `study2data_labelled`: Same dataset, but with character labels instead of numeric values.


## Producing Figures from the Main Paper

To generate the figures included in the main manuscript, refer to the following files:

- `analysis1.R`: Generates **Figures 1 and 2** (depends on `transformation.R`)
- `analysis2.R`: Generates **Figures 3** and **Table 2** (in environment, depends on `transformation2.R`)

**The code will generate plots folder to store all the main figures**

> **Note:** Tables are not typically saved as external files; they are embedded within the analysis scripts. The code sets working directory into file directory. All dependencies will be installed, if you do not have required libraries.

All transformations and analyses were performed using **R version 4.3.2 (2023-10-31 ucrt)**.
